home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2001 / MacHack 2001.toast / pc / Papers / Garrison / Code / SchmoozingExamples / README.txt < prev    next >
Encoding:
Text File  |  2001-06-23  |  1.4 KB  |  18 lines

  1. SchmoozingExamples Readme
  2.  
  3. This project contains example programs to accompany my paper, "Schmoozing with the OmniNetworking Framework".
  4.  
  5. The following targets are included:
  6.  
  7. 1) SchmoozingExamples
  8.  
  9. Builds a Foundation tool application that demonstrates three TCP server strategies, implemented using OmniNetworking.  This tool accepts a flag "-t" to select the strategy, which can be either "iterative", "forking" or "threaded".
  10. E.g.  ./SchmoozingExamples -t forking
  11.  
  12. 2) Listing 1, 3, and 6
  13.  
  14. Each target builds a Foundation tool that runs the code presenting in each of the corresponding listings in the paper.  I wrote these mostly to proof the listings for accuracy.
  15.  
  16. 3) Golding's TCPCFSocket
  17.  
  18. Just a dummy target to hold the source code and text of Ben Golding's original posting on the MacOSX-Dev list for his subclass of ONTCPSocket.  TCPCFSocket uses CFSocket to hook the OmniNetworking socket class into the Cocoa application run loop to that it can receive asynchronous notifications of network socket events.  It demonstrates how to use CFSockets, which is in itself a valuable piece of code, given the dearth of documentation.  Ben has posted it publicly on Omni Group's MacOSX-Dev list, but doesn't distribute it anywhere.  I thought it was too valuable to let languish in some mailing list archive, so I've included here, with Ben's permission.  Send Ben a note if you'll use it, fix it, or improve on it: <mailto:bgg@object-craft.com.au>.